package com.audi.box.service;

import java.util.ArrayList;

import com.audi.box.adapter.SQLiteAsusHelperSmartTrigger;
import com.audi.dto.SmartTriggerWhenItem;

public class SmartTriggerWhenServiceImp implements SmartTriggerWhenService {
    
    private SQLiteAsusHelperSmartTrigger mSQLHelper;
    
    public SmartTriggerWhenServiceImp(SQLiteAsusHelperSmartTrigger mSQLHelper)
            throws Exception {
        this.mSQLHelper = mSQLHelper;
    }
    
    public void setSQLiteHelper(SQLiteAsusHelperSmartTrigger mSQLHelper) {
        this.mSQLHelper = mSQLHelper;
    }
    
    @Override
    public int addSmartTriggerWhen(SmartTriggerWhenItem trigger) {
        return mSQLHelper.addTriggerWhen(trigger);
    }
    
    @Override
    public int updateSmartTriggerWhen(SmartTriggerWhenItem trigger) {
        return mSQLHelper.updateSmartTriggerWhen(trigger);
    }
    
    @Override
    public boolean isExist(SmartTriggerWhenItem trigger) {
        // TODO Auto-generated method stub
        return false;
    }
    
    @Override
    public ArrayList<SmartTriggerWhenItem> getListSmartTriggerWhen() {
        return null;
    }
    
    @Override
    public SmartTriggerWhenItem getSmartTrigger(int triggerId) {
        // TODO Auto-generated method stub
        return null;
    }
    
    @Override
    public int getDeviceValueFromWhen(SmartTriggerWhenItem trigger) {
        return mSQLHelper.getDeviceValueFromSTWhen(trigger);
    }
    
    @Override
    public int deleteSmartTriggerWhen(SmartTriggerWhenItem trigger) {
        // TODO Auto-generated method stub
        return mSQLHelper.deleleSmartTriggerWhen(trigger);
    }
    
}
